//
//  OSCTweetComposeViewModel.h
//  OSChina
//
//  Created by 8b410-2 on 17/1/9.
//  Copyright © 2017年 abb. All rights reserved.
//

#import "OSCBaseViewModel.h"

/// 最大字数
#define maxStrLength 160

@interface OSCTweetComposeViewModel : OSCBaseViewModel
/// 正文
@property (nonatomic, copy, readonly) NSString *content;
/// 图片数组
@property (nonatomic, copy, readonly) NSArray *images;
/// 图片数据
@property (nonatomic, copy, readonly) NSArray *imageDatas;
/// 最大可选图片
@property (nonatomic, assign, readonly) NSInteger maxImagesCount;
/// 允许发送动弹信号
@property (nonatomic, strong, readonly) RACSignal *enableSendSignal;
/// 请求发布动弹
@property (nonatomic, strong, readonly) RACCommand *requestSendCommand;

/**
 关闭当前compose页面
 */
- (void)dismiss;

/**
 处理从相册选择器选到的图片

 @param photos 图片数组
 */
- (void)handlePickerImagesFromAlbum:(NSArray<UIImage *> *)photos;


/**
 处理相机的照片

 @param photo 照片
 */
- (void)hanglePickerImageFromCamera:(UIImage *)photo;

@end
